package com.cheng.service;


import com.cheng.dao.UserDao;
import com.cheng.dao.UserDaoImpl;
import com.cheng.dao.UserDaoMysqlImpl;
import com.cheng.dao.UserDaoOracleImpl;

public class UserServiceImpl implements UserService {

    //调用dao层
//    private UserDao userDao=new UserDaoOracleImpl();

    private  UserDao userDao;

//    利用set进行动态实现值的注入！
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void getUser() {
        userDao.getUser();
    }
}
